




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/15/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.yfprojectdesign.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.yfprojectdesign.entity.YfProjectDesign;
import com.application.yfprojectdesign.struts.form.YfProjectDesignForm;
import com.application.yfprojectdesign.dao.YfProjectDesignDAO;
 /**
 * 
 * Description:YfProjectDesignService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060  <br />
 * 
 * History: <br />
 * 
 * 02/15/2012 
 * 
 */
public class YfProjectDesignService extends BaseService
{
	private YfProjectDesignDAO yfProjectDesignDAO;

	public YfProjectDesignDAO getYfProjectDesignDAO() {
		return this.yfProjectDesignDAO;
	}

	public void setYfProjectDesignDAO(YfProjectDesignDAO yfProjectDesignDAO) {
		this.yfProjectDesignDAO = yfProjectDesignDAO;
	}
        

        public YfProjectDesign getYfProjectDesign(YfProjectDesign yfProjectDesign) {
		return (YfProjectDesign) this.getBaseDao().queryByPk(yfProjectDesign, yfProjectDesign.getId());
	}
	
	public Integer getAllCountYfProjectDesign(YfProjectDesignForm yfProjectDesignForm){
		return this.yfProjectDesignDAO.getAllCountYfProjectDesign(yfProjectDesignForm);
	}
	
	public List<YfProjectDesign> searchYfProjectDesign(YfProjectDesignForm yfProjectDesignForm, PageBean pageBean) throws Exception {
		List<YfProjectDesign> yfProjectDesignList = (List) this.yfProjectDesignDAO.searchYfProjectDesign(yfProjectDesignForm, pageBean);
		return yfProjectDesignList;
	}
        
        public void deleteYfProjectDesigns(YfProjectDesignForm yfProjectDesignForm){
	   this.yfProjectDesignDAO.deleteYfProjectDesigns(yfProjectDesignForm);	 
	}
}
